package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * 批后监管数据
 *
 * @author code-generate
 * @date 2022-02-16
 */
@Data
@DbTable(tableName = "t_approval")
public class Approval extends BaseEntity {
        /**
     * 审批号
     */
    @DbTableField(columnName = "c_approval_code", dbType = DbTypeEnum.VARCHAR)
    public String approvalCode ;

    /**
     * 名称
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name ;

    /**
     * 申请单位
     */
    @DbTableField(columnName = "c_apply_unit", dbType = DbTypeEnum.VARCHAR)
    public String applyUnit ;

    /**
     * 审批单位
     */
    @DbTableField(columnName = "c_approval_unit", dbType = DbTypeEnum.VARCHAR)
    public String approvalUnit ;

    /**
     * 内容
     */
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    public String content ;

    /**
     * 审批位置
     */
    @DbTableField(columnName = "c_location", dbType = DbTypeEnum.VARCHAR)
    public String location ;

    /**
     * 占用绿地面积(平方米)
     */
    @DbTableField(columnName = "c_measure", dbType = DbTypeEnum.DOUBLE)
    public Double measure ;

    /**
     * 占用类型 1 永久占用 2 临时占用 
     */
    @DbTableField(columnName = "c_occupation_type", dbType = DbTypeEnum.INTEGER)
    public Integer occupationType ;

    /**
     * 砍伐树木品种
     */
    @DbTableField(columnName = "c_tree_type", dbType = DbTypeEnum.VARCHAR)
    public String treeType ;

    /**
     * 砍伐树木数量
     */
    @DbTableField(columnName = "c_tree_number", dbType = DbTypeEnum.INTEGER)
    public Integer treeNumber ;

    /**
     * 占用开始时间
     */
    @DbTableField(columnName = "c_start_date", dbType = DbTypeEnum.DATE)
    public LocalDate startDate ;

    /**
     * 占用结束时间
     */
    @DbTableField(columnName = "c_end_date", dbType = DbTypeEnum.DATE)
    public LocalDate endDate ;

    /**
     * 审批时间
     */
    @DbTableField(columnName = "c_approval_date", dbType = DbTypeEnum.DATE)
    public LocalDate approvalDate ;

    /**
     * 申请原因
     */
    @DbTableField(columnName = "c_apply_reason", dbType = DbTypeEnum.VARCHAR)
    public String applyReason ;

    /**
     * 附件
     */
    @DbTableField(columnName = "c_file_url", dbType = DbTypeEnum.VARCHAR)
    public String fileUrl ;

    @ApiModelProperty(value = "文件")
    public List<ApprovalFile> fileList;

    @DbTableField(columnName = "c_serial_number", dbType = DbTypeEnum.VARCHAR)
    public String serialNumber ;

    @DbTableField(columnName = "c_contacts", dbType = DbTypeEnum.VARCHAR)
    public String contacts ;

    @DbTableField(columnName = "c_telephone", dbType = DbTypeEnum.VARCHAR)
    public String telephone ;
}
